<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>v-text的v-html的区别</title>
</head>
<body>
    <div id="smartParty">
        <p>------------------{{a}}----------------------</p>
        <p v-text="a">------------------{{a}}----------------------</p>
        <p v-html="a">------------------{{a}}----------------------</p>
    </div>
    <script src="js/vue2.js"></script>
    <script>
        var vue=new Vue({
            el:"#smartParty",
            data:{
                a:'<h1>我是要插值的内容</h1>'
            }
        })
    </script>
</body>
</html>